package com.pucong.gitee.database.backup.common.entity.database;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pucong.gitee.database.backup.common.selfenum.DatabaseTaskStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("AUTO_TASK_TABLE_PROGRESS")
@ApiModel("数据库备份进度表")
public class BackupTaskTableProgress implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "UUID",type = IdType.INPUT)
    @ApiModelProperty("主键")
    private String uuid;

    @TableField("TASK_ID")
    @ApiModelProperty("任务id")
    private String taskId;

    @TableField("DATABASE_ID")
    @ApiModelProperty("数据库id")
    private String databaseId;

    @TableField("TABLE_NAME")
    @ApiModelProperty("表名")
    private String tableName;

    @TableField("DATA_SIZE")
    @ApiModelProperty("数据量")
    private String dataSize;

    @TableField("PROGRESS_STATUS")
    @ApiModelProperty("执行状态")
    private DatabaseTaskStatusEnum progressStatus;

    @TableField("START_TIME")
    @ApiModelProperty("开始时间")
    private Date startTime;

    @TableField("END_TIME")
    @ApiModelProperty("结束时间")
    private Date endTime;

}
